package ${presenterPackageName}

<#if needActivity && needFragment>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope
<#elseif needActivity>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope
<#elseif needFragment>
import com.jpxx.base.ui.mvp.di.scope.FragmentScope
</#if>
import com.jpxx.base.ui.mvp.BasePresenter

import javax.inject.Inject

import ${contractPackageName}.${pageName}Contract

import androidx.lifecycle.LifecycleOwner

<#if needActivity && needFragment>
@ActivityScope
<#elseif needActivity>
@ActivityScope
<#elseif needFragment>
@FragmentScope
</#if>
class ${pageName}Presenter
@Inject
constructor(model: ${pageName}Contract.Model, rootView: ${pageName}Contract.View) :
BasePresenter<${pageName}Contract.Model, ${pageName}Contract.View>(model,rootView) {

    override fun onDestroy(owner : LifecycleOwner) {
          super.onDestroy(owner);
    }
}
